import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    children: [
      {
        path: '/about',
        name: 'about',
        component: () => import('../views/AboutView.vue')
      },
      {
        path: '/one',
        name: 'one',
        component: () => import('../views/MyOne.vue')
      },
      {
        path: '/tow',
        name: 'tow',
        component: () => import('../views/MyTow')
      }
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
